﻿//-----------------------------------------------------------------------
// <copyright>
//     Copyright (c) Artur Mustafin. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Excel.Expressions.Compiler
{
    internal class Group : CellExpression
    {
        private CellExpression _expression;

        public Group(CellExpression expression)
        {
            _expression = expression;
        }

        public override double Eval()
        {
            return _expression;
        }

#if DEBUG
        public override string ToString()
        {
            return string.Format("({0})", _expression.ToString());
        }
#endif
    }
}
